﻿@using Lari.Configuration
@using Lari.Web.Utility
@model Lari.Services.ViewModel.QualificationModel
<div id="pagetitle">
    <h1>@ScreenName.Masters.ModifyQualificarion</h1>
</div>
<div class="spacer">
</div>
<div id="pagecontent">
    @using (Html.BeginForm())
    {
        @Html.AntiForgeryToken("modigyqalififation")

        <div style="width: 40%">
            <fieldset>
                <legend>Qualification</legend>
                <div>
                    <label class="required">
                        Qualification</label>
                </div>
                <div>
                    @Html.TextBoxFor(m => m.Name, new { style = "width: 70%" })
                   
                </div>
                <div>
                    @Html.ValidationMessageFor(m => m.Name)
                    @Html.HiddenFor(m=>m.Id)
                </div>
                <div class="spacer">
                </div>
                <div>
                    Not a Degree ?
                </div>
                <div>
                    @Html.CheckBoxFor(m=> m.NotDegree)
                </div>
                <div class="spacer">
                    
                </div>
                <div>
                    <label>Degree Type</label>
                </div>
                <div>
                    @Html.DropDownListFor(m => m.Parent, this.ToListItems(LookupEnum.QualificationDegree), new { style = "width: 70%" })
                </div>
                <div>
                    @Html.ValidationMessageFor(m => m.Parent)
                </div>
                <div class="spacer">
                </div>
                <div>
                    <input type="submit" value="@GuiActionName.Modify" id="btnSubmit"/>
                </div>
            </fieldset>
        </div>
        <div class="doubleSpacer">
        </div>
        <div>
            @Html.ActionLink(ScreenName.Masters.Qualifications, ActionConst.Masters.Hr.Qualifications)
        </div>
    }
</div>
<script type="text/javascript">

    $(document).ready(function () {
        $("#btnSubmit").button();
    });
</script>
